<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output encoding="UTF-8" method="html" omit-xml-declaration="yes" indent="yes"/>
	<xsl:template match="/">
		<div class="buildBoxLine">
			<xsl:value-of select="count(/Projects/Project)"/> project builds
		</div>
		<div style="clear:both;"/>
		<div class="buildBoxLine">
			<div class="goodCircle"/><xsl:value-of select="count(/Projects/Project[@lastBuildStatus='Success'])"/> successful
		</div>
		<div style="clear:both;"/>
		<div class="buildBoxLine">
			<div class="badCircle"/><xsl:value-of select="count(/Projects/Project[@lastBuildStatus='Failure'])"/> failing
		</div>
		<div style="clear:both;"/>
		<div class="buildBoxLine">
			<xsl:value-of select="format-number(count(/Projects/Project[@lastBuildStatus='Success']) div count(/Projects/Project), '#%') "/> successful
		</div>
		<div style="clear:both;"/>
	</xsl:template>

</xsl:stylesheet>
